/*
 * @Descripttion:
 * @version:
 * @Author: hutao
 * @Date: 2023-04-23 14:50:21
 * @LastEditors: hutao
 * @LastEditTime: 2023-05-24 11:02:44
 */
import { RouteConfig } from 'vue-router';
import index from '../views/Index.vue';
import WineStockInquiry from '../views/wineStockInquiry/index.vue';
import Login from 'vue-kst-auth';
import CollectWine from '../views/collectWine/index.vue';
import WineJarInquiry from '../views/wineJarInquiry/index.vue';
import Move from '../views/move/index.vue';
import MergeInventory from '../views/mergeInventory/index.vue';
import MixedWine from '../views/mixedWine/index.vue';
import Test from '../views/test.vue';
// import MixedWine from "../views/mixedWine/index.vue"
const routes: Array<RouteConfig> = [
  {
    path: '/login',
    name: '登录',
    component: Login as any,
  },

  {
    path: '/',
    name: '首页',
    component: index,
    children: [
      {
        path: '',
        name: '',
        meta: {
          title: '收酒',
        },
        component: CollectWine,
      },
      {
        path: '/wineStockInquiry',
        name: '',
        meta: {
          title: '酒品库存查询',
        },
        component: WineStockInquiry,
      },
      {
        path: '/wineJarInquiry',
        name: '',
        meta: {
          title: '酒罐库存及出入库查询',
        },
        component: WineJarInquiry,
      },
      {
        path: '/move',
        name: '',
        meta: {
          title: '移库',
        },
        component: Move,
      },
      {
        path: '/mergeInventory',
        name: '',
        meta: {
          title: '并库',
        },
        component: MergeInventory,
      },
      {
        path: '/mixedWine/:factoryName',
        name: '',
        meta: {
          title: '合酒',
        },
        component: MixedWine,
      },
      {
        path: '/test',
        name: '',
        meta: {
          title: '合酒',
        },
        component: Test,
      },
    ],
  },
];

export default routes;
